package com.muyu.cloud.commodity.service;

import com.muyu.cloud.commodity.domain.model.Category;
import com.muyu.cloud.commodity.domain.req.CategoryAddReq;
import com.muyu.cloud.commodity.domain.req.CategoryUpdDateReq;

import java.util.List;

public interface CategoryService {
    List<Category> listByParentId(Long parentId);
    List<Category> tree();
    void addCategory(CategoryAddReq req);

    void update(CategoryUpdDateReq categoryUpdDateReq);
}